﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using System.Data;

namespace DAL
{
    public class OrganizationDAL:Base<Organization>
    {
        public OrganizationDAL()
            : base("organization", "OID")
        {
        }

        /// <summary>
        /// 返回整张组织机构表
        /// </summary>
        /// <returns></returns>
        public DataTable GetAllTable()
        {
            return MySQLHelper.Query("select * from organization");
        }

        public override bool Insert(Organization entity)
        {
            throw new NotImplementedException();
        }

        public override bool Update(Organization entity)
        {
            throw new NotImplementedException();
        }

        public override Organization GetEntityById(int id)
        {
            throw new NotImplementedException();
        }

        public override Organization GetEntityById(string id)
        {
            throw new NotImplementedException();
        }
    }
}
